<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>
  
<style>
.errorMessage {color:red;}
.errorLabel {font-weight:bold}
</style>
    <title>QuickValidation后台验证演示页面(Struts 2 标签)</title>
  </head>
  <body>
<h2>QuickValidation后台验证演示页面(Struts 2 标签)</h2>

普通表单和出错信息提示:
<span class="errorMessage">
${validationErrors}
</span>

  <s:form action="form_tag.action" method="post">
   <s:textfield name="username" label="用户名"/>
   <s:textfield name="age" label="年龄"/> 
   <s:submit/>
   </s:form>
  </body>
</html>